import request from '@/utils/request'

/**
 *
 * @param {object} data {modile,password}
 * @returns
 */
export function login(data) {
  return request({
    method: 'post',
    url: '/sys/login',
    data
  })
}

export function getUserInfo() {
  return request({ // axios 调用的结果是 promise 对象
    method: 'post',
    url: '/sys/profile'
  })
}
export function getUserStaffPhoto(id) {
  return request({ // axios 调用的结果是 promise 对象
    method: 'get',
    url: '/sys/user/' + id
  })
}

